package com.earl.gsm.domain.gsm.match;

import com.earl.gsm.commons.domain.AbstractAuditingEntity;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Table;
import java.io.Serializable;

/**
 * 汽车信息实体类.
 * Created by Administrator on 2016/4/4.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "historymatch")
public class HistoryMatch extends AbstractAuditingEntity<Long> implements Serializable {

//    private Long userId;//用户id

    private String theme;//赛事名字

    private Integer type;

    private String beginTime;

    private String lastTime;

    private String machineNeed;

    private String hostName;

    private String realEndTime;//赛事真实结束时间，比如提前终止

    private Long team1Id;

    private Long team2Id;

    private Long team1score;

    private Long team2score;

    private Long winteamId;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getMachineNeed() {
        return machineNeed;
    }

    public void setMachineNeed(String machineNeed) {
        this.machineNeed = machineNeed;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public String getRealEndTime() {
        return realEndTime;
    }

    public void setRealEndTime(String realEndTime) {
        this.realEndTime = realEndTime;
    }

    public Long getTeam1Id() {
        return team1Id;
    }

    public void setTeam1Id(Long team1Id) {
        this.team1Id = team1Id;
    }

    public Long getTeam2Id() {
        return team2Id;
    }

    public void setTeam2Id(Long team2Id) {
        this.team2Id = team2Id;
    }

    public Long getTeam1score() {
        return team1score;
    }

    public void setTeam1score(Long team1score) {
        this.team1score = team1score;
    }

    public Long getTeam2score() {
        return team2score;
    }

    public void setTeam2score(Long team2score) {
        this.team2score = team2score;
    }

    public Long getWinteamId() {
        return winteamId;
    }

    public void setWinteamId(Long winteamId) {
        this.winteamId = winteamId;
    }

    @Override
    public String toString() {
        return "HistoryMatch{" +
                "theme='" + theme + '\'' +
                ", type=" + type +
                ", beginTime='" + beginTime + '\'' +
                ", lastTime='" + lastTime + '\'' +
                ", machineNeed='" + machineNeed + '\'' +
                ", hostName='" + hostName + '\'' +
                ", realEndTime='" + realEndTime + '\'' +
                ", team1Id=" + team1Id +
                ", team2Id=" + team2Id +
                ", team1score=" + team1score +
                ", team2score=" + team2score +
                ", winteamId=" + winteamId +
                '}';
    }
}
